﻿using Microsoft.Extensions.DependencyInjection;
using System;
using Volo.Abp.Modularity;

namespace Xms.Abp.Caching;

public static class CachingExtensions
{
    public static ServiceConfigurationContext AddCaching<TContext>(this ServiceConfigurationContext context)
        where TContext : CacheContext<TContext>
    {
        context.Services.AddSingleton<TContext>();
        return context;
    }
}
